/**
 * 输入存款金额money、存期year和年利率rate，根据以下公式计算存款到期时的利息interest（税前），输出保留两位小数。
 * interest=money(1+rate)year-money
 */

#include <stdio.h>

int main()
{
    float money, year, rate, interest=0.0;
    printf("Input money year rate in order\n");
    scanf("%f%f%f", &money, &year, &rate);
    interest = money * (1 + rate) * year - money;
    printf("interest: %.2f\n", interest);
    return 0;
}